/**
 * Package:com.goldcitynet.server.utils;
 * $Id: Constants.java,v 1.8 2009/03/20 08:34:35 yangc Exp $
 * Copyright(c) 2001-2005 www.afteryuan.com
 */
package com.afteryuan.server.utils;

/**
 * Constants类 常量类
 * <p/>
 * <p><a href="Constants.java.html"><i>View Source</i></a></p>
 *
 * @author <a href="mailto:afteryuan@afteryuan.com">$Author: yangc $</a>
 * @version $Revision: 1.8 $
 */
public class Constants {
    /**
     * IoSession参数之用户ID（一般存的是gcode）
     */
    public static final String SESSION_ID_KEY = "SESSION_ID_KEY";
    /**
     * IoSession参数之场景ID
     */
    public static final String SESSION_SCENE_KEY = "SESSION_SCENE_KEY";

    /**
     * 策略文件请求信息
     */
    public static final String POLICYREQUEST = "<policy-file-request/>";

    /**
     * 策略文件回复信息
     */
    public static final String POLICYRESPONSE = "<cross-domain-policy><allow-access-from domain=\"*\"  to-ports=\"10088\"/></cross-domain-policy>\0";

    /**
     * 单身状态
     */
    public static final Integer VMARRYSTATE_SINGLE = 0;

    /**
     * 求婚状态
     */
    public static final Integer VMARRYSTATE_COURT = 1;

    /**
     * 未领证
     */
    public static final Integer VMARRYSTATE_NO_CERTIFICATE = 2;

    /**
     * 未举行婚礼
     */
    public static final Integer VMARRYSTATE_NO_NUPTIAL = 3;

    /**
     * 已结婚
     */
    public static final Integer VMARRYSTATE_MARRIED = 4;
    /**
     * 好友在线
     */
    public static final String FRIEND_ONLINE = "1";
    /**
     * 好友离线
     */
    public static final String FRIEND_OFFLINE = "0";

    /**
     * 缓冲区最大值
     */
    public static final int MESSAGEMAXLENGTH = 8192;
}
